Optimal. Leaf size=403 \[ -\frac {2 (a-b) \sqrt {a+b} \left (58 a^2+9 b^2\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 d}+\frac {2 \sqrt {a+b} \left (60 a^3-58 a^2 b+22 a b^2-9 b^3\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 d}-\frac {2 a^3 \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}+\frac {26 a b^2 \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 b^2 (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.35, antiderivative size = 403, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3867, 4141,
4143, 4006, 3869, 3917, 4089} \begin {gather*} -\frac {2 a^3 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{d}-\frac {2 (a-b) \sqrt {a+b} \left (58 a^2+9 b^2\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 d}+\frac {2 \sqrt {a+b} \left (60 a^3-58 a^2 b+22 a b^2-9 b^3\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 d}+\frac {26 a b^2 \tan (c+d x) \sqrt {a+b \sec (c+d x)}}{15 d}+\frac {2 b^2 \tan (c+d x) (a+b \sec (c+d x))^{3/2}}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3867
Rule 3869
Rule 3917
Rule 4006
Rule 4089
Rule 4141
Rule 4143
Rubi steps
\begin {align*} \int (a+b \sec (c+d x))^{7/2} \, dx &=\frac {2 b^2 (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {2}{5} \int \sqrt {a+b \sec (c+d x)} \left (\frac {5 a^3}{2}+\frac {3}{2} b \left (5 a^2+b^2\right ) \sec (c+d x)+\frac {13}{2} a b^2 \sec ^2(c+d x)\right ) \, dx\\ &=\frac {26 a b^2 \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 b^2 (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {4}{15} \int \frac {\frac {15 a^4}{4}+\frac {1}{2} a b \left (30 a^2+11 b^2\right ) \sec (c+d x)+\frac {1}{4} b^2 \left (58 a^2+9 b^2\right ) \sec ^2(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {26 a b^2 \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 b^2 (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {4}{15} \int \frac {\frac {15 a^4}{4}+\left (-\frac {1}{4} b^2 \left (58 a^2+9 b^2\right )+\frac {1}{2} a b \left (30 a^2+11 b^2\right )\right ) \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx+\frac {1}{15} \left (b^2 \left (58 a^2+9 b^2\right )\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=-\frac {2 (a-b) \sqrt {a+b} \left (58 a^2+9 b^2\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 d}+\frac {26 a b^2 \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 b^2 (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+a^4 \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx+\frac {1}{15} \left (b \left (60 a^3-58 a^2 b+22 a b^2-9 b^3\right )\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=-\frac {2 (a-b) \sqrt {a+b} \left (58 a^2+9 b^2\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 d}+\frac {2 \sqrt {a+b} \left (60 a^3-58 a^2 b+22 a b^2-9 b^3\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 d}-\frac {2 a^3 \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}+\frac {26 a b^2 \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 b^2 (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 13.38, size = 1150, normalized size = 2.85 \begin {gather*} \frac {2 (a+b \sec (c+d x))^{7/2} \left (58 a^3 b \sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )+58 a^2 b^2 \sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )+9 a b^3 \sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )+9 b^4 \sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )-116 a^3 b \sqrt {\frac {-a+b}{a+b}} \tan ^3\left (\frac {1}{2} (c+d x)\right )-18 a b^3 \sqrt {\frac {-a+b}{a+b}} \tan ^3\left (\frac {1}{2} (c+d x)\right )+58 a^3 b \sqrt {\frac {-a+b}{a+b}} \tan ^5\left (\frac {1}{2} (c+d x)\right )-58 a^2 b^2 \sqrt {\frac {-a+b}{a+b}} \tan ^5\left (\frac {1}{2} (c+d x)\right )+9 a b^3 \sqrt {\frac {-a+b}{a+b}} \tan ^5\left (\frac {1}{2} (c+d x)\right )-9 b^4 \sqrt {\frac {-a+b}{a+b}} \tan ^5\left (\frac {1}{2} (c+d x)\right )+30 i a^4 \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+30 i a^4 \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a+b}{a-b}\right ) \tan ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+i b \left (-58 a^3+58 a^2 b-9 a b^2+9 b^3\right ) E\left (i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-i \left (15 a^4-60 a^3 b+58 a^2 b^2-22 a b^3+9 b^4\right ) F\left (i \sinh ^{-1}\left (\sqrt {\frac {-a+b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}\right )}{15 \sqrt {\frac {-a+b}{a+b}} d (b+a \cos (c+d x))^{7/2} \sec ^{\frac {7}{2}}(c+d x) \sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \left (-1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )^{3/2} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{1+\tan ^2\left (\frac {1}{2} (c+d x)\right )}}}+\frac {\cos ^3(c+d x) (a+b \sec (c+d x))^{7/2} \left (\frac {2}{15} b \left (58 a^2+9 b^2\right ) \sin (c+d x)+\frac {32}{15} a b^2 \tan (c+d x)+\frac {2}{5} b^3 \sec (c+d x) \tan (c+d x)\right )}{d (b+a \cos (c+d x))^3} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(2184\) vs.
\(2(364)=728\).
time = 0.30, size = 2185, normalized size = 5.42
method | result | size |
default | \(\text {Expression too large to display}\) | \(2185\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{7/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________